﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using Microsoft.Windows.Controls.Ribbon;
using Prowess.OIS.Component.View;
using Prowess.OIS.DicomImpExp.View;
using Prowess.OIS.ServiceClient;

namespace Prowess.OIS
{
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWindow : RibbonWindow
    {
        public MainWindow()
        {
            InitializeComponent();

            // Insert code required on object creation below this point.
        }

        private void Button1_Click(object sender, RoutedEventArgs e)
        {
            WndConfigurations config = new WndConfigurations();
            config.ShowDialog();
        }

        private void AppMenu_DicomImp_Click(object sender, RoutedEventArgs e)
        {
            WndDicomImport dicomImport = new WndDicomImport();
            dicomImport.ShowDialog();
        }

        private void Button2_Click(object sender, RoutedEventArgs e)
        {
            ServiceClient.OISServiceReference.OISServiceClient sc = ServiceClient.ServiceClient.GetServiceClient();
            MessageBox.Show(sc.TestConnection());
        }
    }
}
